package com.renwen.sms.service;

import com.renwen.sms.dto.AdminDto;
import com.renwen.sms.dto.StudentDto;
import com.renwen.sms.dto.TeacherDto;
import com.renwen.sms.entity.Admin;
import com.renwen.sms.entity.Student;
import com.renwen.sms.entity.Teacher;

import javax.servlet.http.HttpServletRequest;

/**
 * 用户登录业务接口类
 * @author zuo,shunian
 */
public interface LoginService {
    /**
     * 学生登录
     * @param student 学生对象
     */
    StudentDto login(Student student, String code,HttpServletRequest request);
    /**
     * 教师登录
     * @param teacher 教师对象
     */
    TeacherDto login(Teacher teacher, String code, HttpServletRequest request);
    /**
     * 管理员登录
     * @param admin 管理员对象
     */
    AdminDto login(Admin admin, String code, HttpServletRequest request);
    /**
     * 管理员密码修改
     */
    void updatePassword1(String pass,String newPass,String adNo);
    /**
     * 学生密码修改
     */
    void updatePassword2(String pass,String newPass,String id);
    /**
     * 教师密码修改
     */
    void updatePassword3(String pass,String newPass,String id);

}
